﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FigureDraw
{
    public class PNG : FileType
    {
        public override void save(string fileName, FileDevice fileDevice, List<CommonShape> shapes)
        {
            fileDevice.drawToBuffer(shapes);
            fileDevice.saveToFile(fileName, "PNG");
        }

    }
}
